<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>员工管理系统</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
</head>
<body class="bg-gray-100">
    <!-- 侧边栏 -->
    <div class="flex h-screen">
        <div class="w-64 bg-blue-800 text-white">
            <div class="p-4">
                <h1 class="text-2xl font-bold">员工管理系统</h1>
            </div>
            <nav class="mt-6">
                <a href="#" class="flex items-center px-4 py-2 text-white hover:bg-blue-700">
                    <i class="fas fa-home mr-3"></i>
                    首页
                </a>
                <a href="#" class="flex items-center px-4 py-2 text-white hover:bg-blue-700">
                    <i class="fas fa-users mr-3"></i>
                    员工管理
                </a>
                <a href="#" class="flex items-center px-4 py-2 text-white hover:bg-blue-700">
                    <i class="fas fa-calendar-alt mr-3"></i>
                    考勤管理
                </a>
                <a href="#" class="flex items-center px-4 py-2 text-white hover:bg-blue-700">
                    <i class="fas fa-money-bill-wave mr-3"></i>
                    薪资管理
                </a>
                <a href="statistics.jsp" class="flex items-center px-4 py-2 text-white hover:bg-blue-700">
                    <i class="fas fa-chart-bar mr-3"></i>
                    数据统计
                </a>
            </nav>
        </div>

        <!-- 主内容区 -->
        <div class="flex-1 p-8">
            <!-- 顶部导航 -->
            <div class="flex justify-between items-center mb-6">
                <h2 class="text-2xl font-bold text-gray-800">员工管理</h2>
            </div>

            <!-- 数据统计卡片 -->
            <div class="grid grid-cols-4 gap-4 mb-6">
                <div class="bg-white p-6 rounded-lg shadow">
                    <div class="flex items-center">
                        <div class="p-3 bg-blue-100 rounded-full">
                            <i class="fas fa-users text-blue-600 text-xl"></i>
                        </div>
                        <div class="ml-4">
                            <p class="text-gray-500">总员工数</p>
                            <p class="text-2xl font-bold">256</p>
                        </div>
                    </div>
                </div>
                <div class="bg-white p-6 rounded-lg shadow">
                    <div class="flex items-center">
                        <div class="p-3 bg-green-100 rounded-full">
                            <i class="fas fa-user-check text-green-600 text-xl"></i>
                        </div>
                        <div class="ml-4">
                            <p class="text-gray-500">在职员工</p>
                            <p class="text-2xl font-bold">245</p>
                        </div>
                    </div>
                </div>
                <div class="bg-white p-6 rounded-lg shadow">
                    <div class="flex items-center">
                        <div class="p-3 bg-yellow-100 rounded-full">
                            <i class="fas fa-clock text-yellow-600 text-xl"></i>
                        </div>
                        <div class="ml-4">
                            <p class="text-gray-500">今日考勤</p>
                            <p class="text-2xl font-bold">98%</p>
                        </div>
                    </div>
                </div>
                <div class="bg-white p-6 rounded-lg shadow">
                    <div class="flex items-center">
                        <div class="p-3 bg-red-100 rounded-full">
                            <i class="fas fa-exclamation-triangle text-red-600 text-xl"></i>
                        </div>
                        <div class="ml-4">
                            <p class="text-gray-500">待处理事项</p>
                            <p class="text-2xl font-bold">12</p>
                        </div>
                    </div>
                </div>
            </div>

            <!-- 使用iframe引入员工列表 -->
            <iframe src="employee-list.jsp" class="w-full h-[600px] border-0"></iframe>
        </div>
    </div>
</body>
</html>